#!/usr/bin/perl
$OK=0;
$CRITICAL=2;
$h=`hostname -s`;
chomp($h);
$res=`cat /proc/fs/lustre/health_check`;
if ($res =~ unhealthy){
        print "$h: disk Not healthy
";
        exit($CRITICAL);
}else{
        print "$h:OK
";
        exit($OK);
}
